<!-- 抽奖规则 -->
<template>
    <div class="content">
        <!-- 规则-->
        <div class="showBox">
            <div class="title">活动规则</div>
            <div class="contentBox" v-html="contentText">
                <!-- {{contentText}} -->
            </div>
        </div>
        <div class="clone" @click.stop="clone">x</div>
    </div>
</template>
<script>
export default {
    name:"rulePrompt",
    props: {
        contentText:{//规则内容
            type: String,
            required: true
        },
        status: {
            type: Boolean,
            required: true
        }
    },
    data(){
        return {

        }
    },
    methods: {
        clone(event){
            console.log(1111111111)
            const _this = this
            if(_this.isOnRotate) return
            _this.prompt = false
            _this.$emit('clone_btn', event)
        }
    },
}
</script>
<style>
    .content{
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, .3)
    }
    .showBox{
        width:2.80rem;
        height:4rem;
        background:rgba(250,250,250,1);
        border-radius:.08rem;
        margin: 1.5rem auto 0;
        padding: .2rem .1rem
    }
    .title{
        height: .25rem;
        font-size: .25rem;
        width: 100%;
        text-align: center;
    }
    .contentBox{
        line-height:.2rem;
        font-size: .16rem;
        margin-top: .05rem;
        color: #bbb;
        height: 3.6rem;
        overflow:auto;
    }
    .contentBox image{
        width: 100%;
        height:100%;
        display: inline-block
    }
    .clone{
        font-size: .3rem;
        font-weight: 100;
        text-align: center;
        line-height: .35rem;
        color: #fff;
        width: .4rem;
        height: .4rem;
        border-radius:50%;
        border:1px solid #fff  ;
        margin: .2rem auto 0
    }
    
</style>